import "./index.less";

const Embedded = () => {
	const handleIframeError = () => {
		console.log("iframe加载失败");
	};

	return (
		<div style={{ width: "100%", height: "100vh" }}>
			<iframe
				src="https://www.doubao.com/chat"
				frameBorder="0"
				className="card full-iframe"
				style={{ width: "100%", height: "100%" }}
				title="内嵌页面"
				onError={handleIframeError}
				onLoad={() => console.log("iframe加载成功")}
			/>
		</div>
	);
};

export default Embedded;
